import request from '@/utils/request'

// 查询医疗机构信息维护列表
export function listMedicalInstitutions(query) {
  return request({
    url: '/hospital/MedicalInstitutions/list',
    method: 'get',
    params: query
  })
}

// 查询医疗机构信息维护详细
export function getMedicalInstitutions(ID) {
  return request({
    url: '/hospital/MedicalInstitutions/' + ID,
    method: 'get'
  })
}

// 新增医疗机构信息维护
export function addMedicalInstitutions(data) {
  return request({
    url: '/hospital/MedicalInstitutions',
    method: 'post',
    data: data
  })
}

// 修改医疗机构信息维护
export function updateMedicalInstitutions(data) {
  return request({
    url: '/hospital/MedicalInstitutions',
    method: 'put',
    data: data
  })
}

// 删除医疗机构信息维护
export function delMedicalInstitutions(ID) {
  return request({
    url: '/hospital/MedicalInstitutions/' + ID,
    method: 'delete'
  })
}
